Skip to content

Move verification_tests from src/ to tests/ as integration test#56

Merged
weter11 merged 1 commit into
mainfrom
move-verification-tests-to-integration-tests
Jun 25, 2026
Merged

Move verification_tests from src/ to tests/ as integration test#56
weter11 merged 1 commit into
mainfrom
move-verification-tests-to-integration-tests

Conversation

@weter11

@weter11 weter11 commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

Moved src/launch/verification_tests.rs to tests/launch_verification_tests.rs.

Problem

The original src/launch/verification_tests.rs file was missing a #[cfg(test)] guard at the top. While the parent module (src/launch/mod.rs) correctly wrapped mod verification_tests in #[cfg(test)], the file itself should be self-contained to avoid accidental compilation of test-only code into production binaries.

Changes

  • Moved: src/launch/verification_tests.rstests/launch_verification_tests.rs
    • Now properly compiled as a Cargo integration test (files in tests/ are excluded from normal compilation automatically)
    • All crate:: imports work correctly since integration tests depend on the library crate
  • Removed: mod verification_tests declaration and its #[cfg(test)] guard from src/launch/mod.rs
  • Unchanged: All other #[cfg(test)]-guarded unit tests in src/ remain in place

Verification

All 11 other test locations in src/ have proper #[cfg(test)] guards on their parent modules or inline mod tests blocks.

@weter11 can click here to continue refining the PR

- Moved src/launch/verification_tests.rs to tests/launch_verification_tests.rs
  (was missing #[cfg(test)] guard, making it unsuitable as inline unit test)
- Removed dead mod verification_tests declaration from src/launch/mod.rs
- All other #[cfg(test)] unit tests in src/ remain unchanged
@weter11 weter11 marked this pull request as ready for review June 25, 2026 10:18
@weter11 weter11 merged commit 7a82007 into main Jun 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants